from nicegui import ui
from nicegui_toolkit import inject_layout_tool

# 确保在创建任何 ui 组件之前调用,这样才能正常使用布局工具
inject_layout_tool()


ui.label("label")
ui.label("label with style").style("width:80%;align:center;")

with ui.card(), ui.card().style(""):
    ui.input("user name", placeholder="enter your name 从 :")
    ui.label("xxxx").style("width:500px;")
    ui.input("password", placeholder="enter your password:").style(
        "font-size:1.7rem;color:#a12d2d"
    )

ui.run()
